package com.shop.user.api.service;

import com.shop.common.model.InputBean;
import com.shop.common.model.ServiceBean;
import com.shop.common.model.param.user.MessageInput;
import com.shop.common.model.result.user.MessageOutput;

import java.util.List;

/**
 * @Description:
 *
 * @author zhoulk
 * @date: 2019年05月08日  17:46
 */

public interface IMessageSvc {

    /**
     * @Function com.shop.user.api.service.IMessageSvc.sendMsg
     * @Description //发送消息
     *
     * @param: messageInput
     * @return com.shop.common.model.ServiceBean<java.lang.String>
     * @errorCode //
     *
     * @Author zhoulk
     * @Date 2019/5/8 17:47
     *
     **/
    ServiceBean<String> sendMsg(MessageInput messageInput);

    /**
     * @Function com.shop.user.api.service.IMessageSvc.modMsg
     * @Description //修改消息
     *
     * @param: messageInput
     * @return com.shop.common.model.ServiceBean<java.lang.String>
     * @errorCode //
     *
     * @Author zhoulk
     * @Date 2019/5/8 17:48
     *
     **/
    ServiceBean<String> modMsg(MessageInput messageInput);

    /**
     * @Function com.shop.user.api.service.IMessageSvc.delMsg
     * @Description //删除消息
     *
     * @param: userId
     * @param: msgId
     * @return com.shop.common.model.ServiceBean<java.lang.String>
     * @errorCode //
     *
     * @Author zhoulk
     * @Date 2019/5/8 17:48
     *
     **/
    ServiceBean<String> delMsg(Integer userId,Integer msgId);

    /**
     * @Function com.shop.user.api.service.IMessageSvc.qryMsgList4P
     * @Description // 分页查询消息
     *
     * @param: inputBean
     * @return com.shop.common.model.ServiceBean<java.util.List<com.shop.common.model.result.user.MessageOutput>>
     * @errorCode //
     *
     * @Author zhoulk
     * @Date 2019/5/8 17:49
     *
     **/
    ServiceBean<List<MessageOutput>> qryMsgList4P(InputBean<MessageInput> inputBean);
}
